// 订单相关
export const ADD_ORDER = 'add_order';
export const DEL_ORDER = 'del_order';
export const UPDATE_ORDER = 'update_order';
export const FIND_ORDER = 'find_order';
export const FIND_ORDER_BY_ID = 'find_order_by_id';

// 搜索状态
export const ON_SEARCH = 'on_search';
export const UPDATE_RES = 'update_res';

// 售后相关

// 配送模板相关
export const ADD_TEMPLATE = 'add_template';
export const DEL_TEMPLATE = 'del_template';
export const UPDATE_TEMPLATE = 'update_template';
export const CHANGE_DEFAULT = 'change_default';
export const TEMPLATE_ON_SEARCH = 'template_on_search';
export const TEMPLATE_RES = 'template_res';

// 下拉框相关数据
// 订单搜索项
export const SEARCH_OPT = [
  {
    value: 1,
    label: '订单编号',
  },
  {
    value: 2,
    label: '收货人姓名',
  },
  {
    value: 3,
    label: '收货人手机',
  },
  {
    value: 4,
    label: '提货码',
  },
  {
    value: 5,
    label: '物流单号',
  },
  {
    value: 6,
    label: '客户昵称',
  },
  {
    value: 7,
    label: '规格编码',
  },
];
// 订单状态
export const ORDER_OPT = [
  {
    value: 0,
    label: '全部',
  },
  {
    value: 1,
    label: '待支付',
  },
  {
    value: 2,
    label: '待发货',
  },
  {
    value: 3,
    label: '已发货',
  },
  {
    value: 4,
    label: '已完成',
  },
  {
    value: 5,
    label: '已关闭',
  },
  {
    value: 6,
    label: '售后中',
  },
];
//售后状态
export const SALE_OPT = [
  {
    value: 1,
    label: '全部',
  },
  {
    value: 2,
    label: '售后中',
  },
  {
    value: 3,
    label: '售后结束',
  },
];
// 售后页面-售后状态
export const AFTER_SALE_STATE = [
  {
    value: 1,
    label: '售后申请待商家处理',
  },
  {
    value: 2,
    label: '商家不同意，待买家处理',
  },
  {
    value: 3,
    label: '商家已同意，待买家处理',
  },
  {
    value: 4,
    label: '买家已退货，待商家收货',
  },
  {
    value: 5,
    label: '商家拒绝收货，待买家处理',
  },
  {
    value: 6,
    label: '商家已收货，待买家收货',
  },
  {
    value: 7,
    label: '售后成功',
  },
  {
    value: 8,
    label: '售后关闭',
  },
];
// 付款方式
export const PAY_METHOD_OPT = [
  {
    value: 1,
    label: '全部',
  },
  {
    value: 2,
    label: '微信支付',
  },
  {
    value: 3,
    label: '支付宝支付',
  },
  {
    value: 4,
    label: '花呗支付',
  },
  {
    value: 5,
    label: '花呗分期',
  },
  {
    value: 6,
    label: '银联支付',
  },
];
// 支付平台
export const PAY_PLATFORM_OPT = [
  {
    value: 1,
    label: '全部',
  },
  {
    value: 2,
    label: '小程序',
  },
  {
    value: 3,
    label: 'APP',
  },
  {
    value: 4,
    label: 'PC官网',
  },
  {
    value: 5,
    label: 'M站',
  },
];
// 推广渠道
export const PROMOTION_CHANNEL_OPT = [
  {
    value: 1,
    label: '全部',
  },
  {
    value: 2,
    label: '抖音直播',
  },
  {
    value: 3,
    label: '腾讯惠聚',
  },
  {
    value: 4,
    label: '小红书订单',
  },
  {
    value: 5,
    label: '微信小店',
  },
  {
    value: 6,
    label: '支付宝商家小程序',
  },
];
// 发货状态
export const DELIVER_STATE_OPT = [
  {
    value: 1,
    label: '全部',
  },
  {
    value: 2,
    label: '已发货',
  },
  {
    value: 3,
    label: '未发货',
  },
];
// 售后方式
export const AFTER_SALE_METHOD = [
  {
    value: 1,
    label: '全部',
  },
  {
    value: 2,
    label: '仅退款',
  },
  {
    value: 3,
    label: '退货退款',
  },
  {
    value: 4,
    label: '换货',
  },
];

let expressArr = [];
const expressObj = {
  AAEWEB: 'AAE',
  ARAMEX: 'Aramex',
  DHL: 'DHL国内件',
  DHL_EN: 'DHL国际件',
  DPEX: 'DPEX',
  DEXP: 'D速',
  EMS: 'EMS(国内和国际)',
  EWE: 'EWE',
  FEDEX: 'FEDEX',
  FEDEXIN: 'FedEx国际',
  PCA: 'PCA',
  TNT: 'TNT',
  UPS: 'UPS',
  ANJELEX: '安捷',
  ANE: '安能快递',
  ANEEX: '安能快递',
  ANXINDA: '安信达',
  EES: '百福东方',
  HTKY: '百世快递',
  BSKY: '百世快运',
  FLYWAYEX: '程光',
  DTW: '大田',
  DEPPON: '德邦快递',
  GCE: '飞洋',
  PHOENIXEXP: '凤凰',
  FTD: '富腾达',
  GSD: '共速达',
  GTO: '国通快递',
  BLACKDOG: '黑狗',
  HENGLU: '恒路',
  HYE: '鸿远',
  HQKY: '华企',
  JOUST: '急先达',
  TMS: '加运美',
  JIAJI: '佳吉',
  JIAYI: '佳怡',
  KERRY: '嘉里物流',
  HREX: '锦程快递',
  PEWKEE: '晋越',
  JD: '京东快递',
  KKE: '京广快递',
  JIUYESCM: '九曳供应链',
  KYEXPRESS: '跨越',
  FASTEXPRESS: '快捷',
  BLUESKY: '蓝天',
  LTS: '联昊通',
  LBEX: '龙邦快递',
  CAE: '民航',
  ND56: '能达',
  PEISI: '配思航宇',
  EFSPOST: '平安快递',
  CHINZ56: '秦远物流',
  QCKD: '全晨',
  QFKD: '全峰快递',
  APEX: '全一',
  RFD: '如风达',
  SFC: '三态',
  STO: '申通快递',
  SFWL: '盛丰',
  SHENGHUI: '盛辉',
  SDEX: '顺达快递',
  SFEXPRESS: '顺丰',
  SUNING: '苏宁',
  SURE: '速尔',
  HOAU: '天地华宇',
  TTKDEX: '天天',
  VANGEN: '万庚',
  WANJIA: '万家物流',
  EWINSHINE: '万象',
  GZWENJIE: '文捷航空',
  XBWL: '新邦',
  XFEXPRESS: '信丰',
  BROADASIA: '亚风',
  YIEXPRESS: '宜送',
  QEXPRESS: '易达通',
  ETD: '易通达',
  UC56: '优速快递',
  CHINAPOST: '邮政包裹',
  YFHEX: '原飞航',
  YTO: '圆通快递',
  YADEX: '源安达',
  YCGWL: '远成',
  YFEXPRESS: '越丰',
  YTEXPRESS: '运通',
  YUNDA: '韵达快递',
  ZJS: '宅急送',
  ZMKMEX: '芝麻开门',
  COE: '中国东方',
  CRE: '中铁快运',
  ZTKY: '中铁物流',
  ZTO: '中通快递',
  ZTO56: '中通快运(物流)',
  CNPL: '中邮',
  YIMIDIDA: '壹米滴答',
  PJKD: '品俊快递',
  RRS: '日日顺物流',
  YXWL: '宇鑫物流',
  DJ56: '东骏快捷',
  AYCA: '澳邮专线',
  BDT: '八达通',
  CITY100: '城市100',
  CJKD: '城际快递',
  D4PX: '递四方速递',
  FKD: '飞康达',
  GTSD: '广通',
  HQSY: '环球速运',
  HYLSD: '好来运快递',
  JAD: '捷安达',
  JTKD: '捷特快递',
  JGWL: '景光物流',
  MB: '民邦快递',
  MK: '美快',
  MLWL: '明亮物流',
  PADTF: '平安达腾飞快递',
  PANEX: '泛捷快递',
  QRT: '全日通快递',
  QXT: '全信通',
  RFEX: '瑞丰速递',
  SAD: '赛澳递',
  SAWL: '圣安物流',
  SDWL: '上大物流',
  ST: '速通物流',
  STWL: '速腾快递',
  SUBIDA: '速必达物流',
  WJK: '万家康',
  XJ: '新杰物流',
  ZENY: '增益快递',
  ZYWL: '中邮物流',
  EUASIA: '欧亚专线',
  HEMA: '河马动力',
};
for (let key in expressObj) {
  expressArr.push({ value: key, label: expressObj[key] });
}
export const EXPRESS_COMPANY = expressArr;
